From: Georges Basile Stavracas Neto Date: Thu, 28 Nov 2019 21:22:55 +0000 (-0300) Subject: unlockDialog, loginDialog: Add a 'wake-up-screen' signal X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~777^2^2~138 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=54e2d3ceb7dc6558a0fba356725fa1c155a90756;p=gnome-shell.git unlockDialog, loginDialog: Add a 'wake-up-screen' signal The signal is currently present in the notifications box, but next commits will move the notifications box to the unlock dialog. Add a 'wake-up-screen' signal to the dialogs. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872 --- diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 2fd24eafd..503245a57 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -409,7 +409,10 @@ var SessionMenuButton = GObject.registerClass({ }); var LoginDialog = GObject.registerClass({ - Signals: { 'failed': {} }, + Signals: { + 'failed': {}, + 'wake-up-screen': {}, + }, }, class LoginDialog extends St.Widget { _init(parentActor) { super._init({ style_class: 'login-dialog', visible: false }); diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 48b735ad6..94e399bbb 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -819,6 +819,8 @@ var ScreenShield = class { } this._dialog.connect('failed', this._onUnlockFailed.bind(this)); + this._wakeUpScreenId = this._dialog.connect( + 'wake-up-screen', this._wakeUpScreen.bind(this)); } this._dialog.allowCancel = allowCancel; diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index 07545da49..f1cdc8b53 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -53,7 +53,10 @@ class UnlockDialogClock extends St.BoxLayout { }); var UnlockDialog = GObject.registerClass({ - Signals: { 'failed': {} }, + Signals: { + 'failed': {}, + 'wake-up-screen': {}, + }, }, class UnlockDialog extends St.Widget { _init(parentActor) { super._init({